package com.itheima.dubbo.consumer.xml;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.dubbo.api.HelloApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerXml {
    @Reference
    private HelloApi helloApi;
    @GetMapping("/xml")
    public String helloXML(String username){
        return helloApi.hellodubbo(username);
    }
}
